//-*-Igor-*-
#pragma rtGlobals=1		// Use modern global access method.

//
// -------------------------------------------------------------------------
//   
// "JEG_WaveIsIntegral" --
//  
//  Returns true if w consists of 8, 16, or 32 bit integers
//  
// --Version--Author------------------Changes-------------------------------
//    2.0     <j-guyer@nwu.edu> original
// -------------------------------------------------------------------------
//
Function JEG_WaveIsIntegral(w)
	Wave w

	String theWaveInfo = WaveInfo(w,0)
	return ((JEG_NumByKey("NUMTYPE",theWaveInfo,":",";") %& (0x08 %| 0x10 %| 0x20)) != 0)
End

//
// -------------------------------------------------------------------------
//   
// "JEG_WaveIsScaled" --
//  
//  Returns true if scaling has been applied to the data dimension of w
//  
// --Version--Author------------------Changes-------------------------------
//    2.0     <j-guyer@nwu.edu> original
// -------------------------------------------------------------------------
//
Function JEG_WaveIsScaled(w)
	Wave w

	String theWaveInfo = WaveInfo(w,0)
	return (str2num(GetStrFromList(JEG_StrByKey("FULLSCALE",theWaveInfo,":",";"),0,",")))
End
